<template>
  <div class="home">
    <img alt="Vue logo" src="../assets/logo.png" />
    <HelloWorld msg="Welcome to Your Vue.js App" />
  </div>
</template>

<script>
// @ is an alias to /src
import HelloWorld from '@/components/HelloWorld.vue'
import request from '@/utils/request'

export default {
  name: 'Home',
  components: {
    HelloWorld,
  },
  mounted() {
    request.get('/proxy').then((res) => {
      console.log(res)
    })
    request.get('/articles').then((res) => {
      console.log(res)
    })
    request.get('/news').then((res) => {
      console.log(res)
    })
  },
}
</script>
